package astra.client.services;

import astra.client.models.*;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import java.util.List;

@RemoteServiceRelativePath("AstraService")
public interface AstraService extends RemoteService {
    Employee getEmployee();

	Employee signIn(String username, String password) throws WrongCredentialsException;

    void store(HasId model);

    AstraData getAstraData();

    TableRequestResult<Purchase> getPurchase(int page, int rowsPerPage, boolean requestRowsCount, PurchaseFilter filter);
}
